<?php
/**
 * Created by PhpStorm.
 * User: eric
 * Date: 10/21/14
 * Time: 1:20 PM
 */

namespace app\components\helpers;


class Logger {

    public static function info($message, $category, $isFinal = true){
        \Yii::info($message, $category);
        \Yii::getLogger()->flush($isFinal);
    }

    public static function error($message, $category, $isFinal = true){
        \Yii::error($message, $category);
        \Yii::getLogger()->flush($isFinal);
    }

    public static function warning($message, $category, $isFinal = true){
        \Yii::warning($message, $category);
        \Yii::getLogger()->flush($isFinal);
    }

} 